//
//  RootViewController.m
//  DatePickerTest
//
//  Created by AndyChang.zhang on 14-9-3.
//  Copyright (c) 2014年 zhangchh. All rights reserved.
//

#import "RootViewController.h"
#import "ZZZPullDownView.h"
#import "ZZZPullDownModel.h"

@interface RootViewController ()

@end

@implementation RootViewController

- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    ZZZPullDownView *_sexPullDownView = [[ZZZPullDownView alloc] initWithFrame:CGRectMake(10, 200, 288, 41) parentView:self.view];
    
    
    ZZZPullDownModel *model = [[ZZZPullDownModel alloc] init];
    model.titleStr = @"男";
    model.value = @"男";
    
    ZZZPullDownModel *model2 = [[ZZZPullDownModel alloc] init];
    model2.titleStr = @"女";
    model2.value = @"女";
    
    ZZZPullDownModel *model3 = [[ZZZPullDownModel alloc] init];
    model3.titleStr = @"女";
    model3.value = @"女";
    ZZZPullDownModel *model4 = [[ZZZPullDownModel alloc] init];
    model4.titleStr = @"女";
    model4.value = @"女";
    ZZZPullDownModel *model5 = [[ZZZPullDownModel alloc] init];
    model5.titleStr = @"女";
    model5.value = @"女";
    
    [_sexPullDownView setPullDownModelList:@[model, model2, model3,model4,model5]];
    [self.view addSubview:_sexPullDownView];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
